package com.dt.global.entitys.bo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

/**
 * TWebCoreRole entity. @author ZSM
 */
@Entity
@Table(name = "T_WEB_CORE_ROLE")
@Proxy(lazy = false)
public class TWebCoreRole implements java.io.Serializable {

	// Fields

	private String roleId;
	private String name;
	private String description;
	private String roleType;
	private String funcFlag;

	// Constructors

	/** default constructor */
	public TWebCoreRole() {
	}

	/** minimal constructor */
	public TWebCoreRole(String roleId) {
		this.roleId = roleId;
	}

	/** full constructor */
	public TWebCoreRole(String roleId, String name, String description,
			String roleType, String funcFlag) {
		this.roleId = roleId;
		this.name = name;
		this.description = description;
		this.roleType = roleType;
		this.funcFlag = funcFlag;
	}

	// Property accessors
	@Id
	@Column(name = "ROLE_ID", unique = true, nullable = false, length = 50)
	public String getRoleId() {
		return this.roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	@Column(name = "NAME", length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "DESCRIPTION", length = 250)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "ROLE_TYPE", length = 1)
	public String getRoleType() {
		return this.roleType;
	}

	public void setRoleType(String roleType) {
		this.roleType = roleType;
	}

	@Column(name = "FUNC_FLAG", length = 50)
	public String getFuncFlag() {
		return this.funcFlag;
	}

	public void setFuncFlag(String funcFlag) {
		this.funcFlag = funcFlag;
	}

}